import { copy } from "../utils/copy"

const Icon = ({ classNameString, text }) => {
  return (
    <button className="btn btn-light m-2" key={classNameString} onClick={
      () => copy('icon-'+classNameString)
    }>
      <i className={'icon-' + classNameString} /> {text}
    </button>
  )
}

export default Icon
